package com.yt.user.models.service;

import com.baomidou.mybatisplus.service.IService;
import com.yt.user.models.bo.SysRoleSaveBO;
import com.yt.user.models.dto.SysRoleDTO;

import java.util.List;

/**
 * 登录服务
 *
 * @author xieyanfei
 * @Date 2025-09-05 18:01:12
 */
public interface ISysRoleService extends IService<SysRoleDTO> {
    boolean add(SysRoleSaveBO saveBO);
    // 修改文件: yt-user/yt-user-models/src/main/java/com/yt/user/models/service/ISysRoleService.java
    SysRoleDTO selectByRoleName(String roleName);
    boolean assignPermissions(Long roleId, List<Long> permissionIds);
}
